package com.ctyun.xstore.vod;

import com.alibaba.fastjson.annotation.JSONField;

public abstract class AbstractVODResponse<T> {

	private String code;

	private String message;

	private T data;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

	@JSONField(serialize = false, deserialize = false)
	public boolean isSuccessful() {
		return "0".equals(code);
	}
}
